import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 * ${TableComment}
 *
 * @author ${Author}  ${Email}
 * @since  ${DateTime}
 */
@Slf4j
@Service
public class ${ClassName}ServiceImpl extends ServiceImpl<${ClassName}Mapper, ${ClassName}> implements ${ClassName}Service {

    @Override
    public Result page(Integer pageNum, Integer pageSize) {
    Page<${ClassName}> page = new Page<>(pageNum, pageSize);
        return Result.success(this.page(page));
    }

    @Override
    public Result add(${ClassName} entity) {
        this.save(entity);
        return Result.success();
    }

    @Override
    public Result delete(Integer id) {
        boolean removeFlag = this.removeById(id);
        return removeFlag ? Result.success() : Result.error();
    }

}